package com.Immutable.String;

final class Student {
	private final int sid;
	private final String name;
	private final long phone;
	private final Address studAdd;
	public Student(int sid, String name, long phone, Address studAdd) {
		super();
		this.sid = sid;
		this.name = name;
		this.phone = phone;
		this.studAdd = studAdd;
	}
	@Override
	public String toString() {
		
		return "Stud Info\t:"+sid+"\t"+name+"\t"+phone+"\nAdd Info\t:"+studAdd;
	}
	public int getSid(){
		return this.sid;
	}
	public Address getStudAddress() throws CloneNotSupportedException{
		return (Address) studAdd.clone();
	}

}
